const mongoose = require("mongoose")
const Schema = mongoose.Schema

// Create Schema
const InvestSchema = new Schema({
  // 投资人姓名
  name: {
    type: String,
    required: true
  },
  // 投资人电话
  telephone: {
    type: String,
    required: true
  },
  number: {
    type: String,
    required: true
  },
  models: {
    type: String
  },
  //投资金额
  cash: {
    type: Number,
  },
  createTime: {
    type: Date
  }
  // // 状态  1 投资完成
  // status: {
  //   type: Number,
  // }
})

module.exports = Invest = mongoose.model("invest", InvestSchema);